Digital Synchronous Rectification Control for Flyback Converter

ABSTRACT

A flyback converter includes a primary-side switch connected to a primary-side winding of a transformer and a secondary-side switch connected to a secondary-side winding of the transformer. The flyback converter is operated by controlling the primary-side switch to store energy in the transformer during ON periods of the primary-side switch, switching on the secondary-side switch synchronously with switching off the primary-side switch to transfer energy from the transformer to the secondary side, determining an off time of the secondary-side switch based on a reflected input voltage measured at the secondary-side winding when the primary-side switch is on, accounting for a settling time of the reflected input voltage when determining the off time of the secondary-side switch so that the settling time has little or no effect on the off time, and switching off the secondary-side switch based on the off time.

TECHNICAL FIELD

The present application relates to flyback converters, in particular synchronous rectification control for flyback converters.

BACKGROUND

A flyback converter is a transformer-isolated converter based on the basic buck-boost topology. In a flyback converter, a switch is connected in series with the transformer primary side. The transformer is used to store energy during ON periods of the primary switch, and provides isolation between the input voltage source and the output voltage. In a steady state of operation, when the primary switch is ON for a period of TON, during the TON period, a diode on the secondary side becomes reverse-biased and the transformer behaves as an inductor. The value of this inductor is equal to the transformer primary magnetizing inductance L_(M), and the stored magnetizing energy from the input voltage source. As such, the current in the primary transformer (magnetizing current I_(M)) rises linearly from an initial value to a peak value. As the diode on the secondary side becomes reverse-biased, the load current is supplied from an output capacitor on the secondary side. The output capacitor value is ideally large enough to supply the load current for the time period TON, with the maximum specified drop in output voltage.

To increase system efficiency, flyback converters typically use Synchronous Rectification (SR) controller and a secondary-side SR power MOSFET. The secondary-side SR power MOSFET is turned on and off synchronously with the primary side power MOSFET. Some conventional secondary-side controllers have an SR sense pin used for voltage sensing to turn off the SR power MOSFET on the secondary side, and which has a very high breakdown voltage requirement (e.g. up to 120V or even higher), so the chip technology used to implement the secondary-side controller must support very high voltages. The SR sense pin is used for voltage sensing, which has a very low negative threshold voltage comparison requirement (e.g. around −10 mV with 10 uV accuracy), which is very difficult to implement in standard chip technologies. Other conventional secondary-side controllers do not require high voltage technology for the controller and do not need to compare against a very low negative threshold voltage for detecting when to turn off the secondary-side SR power MOSFET. However, these controllers suffer from settling time variation which causes the measurement of the reflected input voltage from the secondary side of the transformer to have some error, especially for high frequency and high input line cases. This variation greatly influences the calculation of the turn-on timing for the secondary-side SR power MOSFET. Errors in the SR on-time calculations is problematic, and leads to inefficient operation. Accordingly, conventional secondary-side controllers are designed for applications operating over a relatively narrow operating range. Improved secondary-side controllers and SR control techniques are therefore desired.

SUMMARY

According to an embodiment of a method of operating a flyback converter having a primary-side switch connected to a primary-side winding of a transformer and a secondary-side switch connected to a secondary-side winding of the transformer, the method comprises: controlling the primary-side switch to store energy in the transformer during ON periods of the primary-side switch; switching on the secondary-side switch synchronously with switching off the primary-side switch to transfer energy from the transformer to the secondary side; determining an off time of the secondary-side switch based on a reflected input voltage measured at the secondary-side winding when the primary-side switch is on; accounting for a settling time of the reflected input voltage when determining the off time of the secondary-side switch, so that the settling time has little or no effect on the off time; and switching off the secondary-side switch based on the off time.

According to an embodiment of a flyback converter, the flyback converter comprises a primary-side switch connected to a primary-side winding of a transformer, a secondary-side switch connected to a secondary-side winding of the transformer, a primary-side controller operable to control the primary-side switch to store energy in the transformer during ON periods of the primary-side switch and a secondary-side controller. The secondary-side controller is operable to: switch on the secondary-side switch synchronously with switching off the primary-side switch to transfer energy from the transformer to the secondary side; determine an off time of the secondary-side switch based on a reflected input voltage measured at the secondary-side winding when the primary-side switch is on; account for a settling time of the reflected input voltage when determining the off time of the secondary-side switch, so that the settling time has little or no effect on the off time; and switch off the secondary-side switch based on the off time.

According to an embodiment of a secondary-side controller for a flyback converter having a primary-side switch connected to a primary-side winding of a transformer and a secondary-side switch connected to a secondary-side winding of the transformer, the secondary-side controller comprises circuitry operable to switch on the secondary-side switch synchronously with switching off the primary-side switch to transfer energy from the transformer to the secondary side, determine an off time of the secondary-side switch based on a reflected input voltage measured at the secondary-side winding when the primary-side switch is on, account for a settling time of the reflected input voltage when determining the off time of the secondary-side switch, so that the settling time has little or no effect on the off time, and switch off the secondary-side switch based on the off time.

Those skilled in the art will recognize additional features and advantages upon reading the following detailed description, and upon viewing the accompanying drawings.

BRIEF DESCRIPTION OF THE FIGURES

The elements of the drawings are not necessarily to scale relative to each other. Like reference numerals designate corresponding similar parts. The features of the various illustrated embodiments can be combined unless they exclude each other. Embodiments are depicted in the drawings and are detailed in the description which follows.

FIG. 1 illustrates a block diagram of an embodiment of a flyback converter with compensated secondary-side SR switch control.

FIG. 2 illustrates a waveform diagram of the compensated secondary-side SR switch control technique.

FIG. 3 illustrate a circuit diagram of an analog-based embodiment of the compensated secondary-side SR switch control technique.

FIGS. 4 through 6 illustrate different scenarios handled by the compensated secondary-side SR switch control technique.

FIG. 7 illustrates a flow diagram of an embodiment of the compensated secondary-side SR switch control technique.

FIG. 8 illustrate a circuit diagram of a digital-based embodiment of the compensated secondary-side SR switch control technique.

DETAILED DESCRIPTION

The embodiments described herein compensate for the settling time portion of the primary-side switch of a flyback converter, and use this compensation to adjust the on-time period of the secondary-side SR switch. In some embodiments, previous or present sampled input voltage information is used to modify the on-time period of the secondary-side SR switch. In other embodiments, correct input voltage information is obtained from the previous switching cycle (settled voltage) and the turn-off time of the SR switch on the secondary side is optimized for the next cycle based on this information. In general, the primary-side switch is controlled to store energy in the flyback transformer during ON periods of the primary-side switch. The secondary-side switch is switched synchronously with switching off the primary-side switch to transfer energy from the transformer to the secondary side of the flyback converter. The off time of the secondary-side switch, which occurs at the end of the on-time period for the secondary-side switch, is determined based on the reflected input voltage measured at the secondary-side winding of the flyback transformer when the primary-side switch is on. The settling time of the reflected input voltage is accounted for when determining the off time of the secondary-side switch, so that the settling time has little or no effect on the off time. The secondary-side switch is switched off based on the (compensated) off time.

FIG. 1 illustrates an embodiment of a flyback converter that includes a primary-side switch Q1 connected to a primary-side winding Wp of a transformer 100, a secondary-side switch Q2 connected to a secondary-side winding Ws of the transformer 100 and a primary-side controller 102 operable to control the primary-side switch Q1 to store energy in the transformer 100 during ON periods of the primary-side switch Q1. The primary-side and secondary-side switches Q1, Q2 are shown as power MOSFETs with integrated diodes in FIG. 1. However, any suitable power transistors can be used for the primary-side and secondary-side switches Q1, Q2 such as but not limited to power MOSFETs, IGBTs (insulated gate bipolar transistors), HEMTs (high-electron mobility transistors), etc. Switching of the primary-side switch Q1 is controlled by the primary-side controller 102 which generates a signal Q1 _(CTRL) based on the input voltage Vin, current I_(Q1) through the primary-side switch Q1, and a zero-cross detect voltage developed by a resistor divider (not shown for ease of illustration) coupled to an auxiliary winding (also not shown for ease of illustration) on the primary side of the flyback converter. Switching control of a primary-side switch of a flyback converter is well known in the art, and therefore no further explanation is provided with respect to the switching control of primary-side switch Q1.

The flyback converter also includes a secondary-side controller 104 for controlling the secondary-side switch Q2 connected to the secondary-side winding Ws of the flyback transformer 100. The secondary-side controller 104 switches on the secondary-side switch Q2 synchronously with switching off the primary-side switch Q1, to transfer energy from the transformer 100 to the secondary side of the flyback converter. The secondary-side controller 104 also determines the off time of the secondary-side switch Q2, which occurs at the end of the on-time period for the secondary-side switch, based on the reflected input voltage V_(DET) measured at the secondary-side winding Ws of the transformer 100 when the primary-side switch Q1 is on. The reflected input voltage V_(DET) measured on the secondary side has the correct information about the bulk (input voltage) when the primary-side switch Q1 turns on, and is stepped down to voltage V_(PD) by a resistor divider formed by resistors R₁ and R₂ for input to the secondary-side controller 104.

The secondary-side controller 104 also accounts for the settling time of the reflected input voltage V_(DET) when determining the off time of the secondary-side switch Q2, so that the settling time has little or no effect on the off time, and switches off the secondary-side switch Q2 based on the (compensated) off time.

When primary-side switch Q1 is turned off, secondary side peak current based on discontinuous conduction mode (DCM) operation is given by:

$\begin{matrix} {I_{SP} = {\frac{N_{P}}{N_{S}} \times I_{PP}}} & (1) \end{matrix}$

where I_(SP) is the peak current of the secondary-side winding Ws, I_(PP) is the peak current of the primary-side winding Wp, N_(P) is the primary winding turns, and N_(S) is the secondary winding turns. The peak current I_(PP) of the primary-side winding Wp and the peak current I_(SP) of the secondary-side winding Ws are given by:

$\begin{matrix} {I_{PP} = {\frac{V_{in}}{L_{P}} \times T_{on}}} & (2) \\ {and} & \; \\ {I_{SP} = {\frac{V_{out}}{L_{S}} \times T_{DET}}} & (3) \end{matrix}$

where L_(P) is the primary-side winding inductance, V_(in) is the primary-side input voltage, V_(out) is the system output voltage, T_(on) is the turn-on period for the primary-side switch Q1, and T_(DET) is the timing for secondary-side winding demagnetization, which should also be the turn-on period T_(on) of the secondary-side switch Q2.

Inserting equations (2) and (3) into equation (1) yields:

$\begin{matrix} {{{\frac{V_{out}}{L_{S}} \times T_{DET}} = {\frac{N_{P}}{N_{S}} \times \frac{V_{in}}{L_{P}} \times T_{on}}},} & (4) \\ {\frac{N_{P}}{N_{S}} = {\sqrt{\frac{L_{P}}{L_{S}}} = n}} & (5) \\ {and} & \; \\ {\frac{V_{in} \times T_{on}}{n} = {V_{out} \times T_{DET}}} & (6) \end{matrix}$

From equation (6), the inductor average voltage is zero during a switching period in steady state, so the product of charge-voltage and charge-time is equal to the product of discharge-voltage and discharge-time, which is referred to as the volt-second balance equation.

Equation (6) can be used to predict a solution for the on-time period and thus off time of the secondary-side switch Q2, but because of reflected input measurement error and parasitic parameters in the system, equation (6) may not be followed closely. The secondary-side controller 104 calculates the secondary-side winding demagnetization time T_(DET) for the previous switching cycle and the present product of charge-voltage and charge-time, cancelling errors introduced by the measurement error and parasitic parameters.

For the n^(th) switching cycle, the charge balance equation is given by:

$\begin{matrix} {\frac{\left\lbrack {{V_{in}(n)} + ɛ} \right\rbrack \times {T_{on}(n)}}{n} = {{V_{out}(n)} \times {T_{DET}(n)}}} & (7) \end{matrix}$

where ε is the measurement error for the reflected input voltage V_(DET). For the (n+1)^(th) switching cycle, the charge balance equation is given by:

$\begin{matrix} {\frac{\left\lbrack {{V_{in}\left( {n + 1} \right)} + ɛ} \right\rbrack \times {T_{on}\left( {n + 1} \right)}}{n} = {{V_{out}\left( {n + 1} \right)} \times {T_{DET}\left( {n + 1} \right)}}} & (8) \end{matrix}$

Dividing equations (7) and (8) yields:

$\begin{matrix} {{T_{DET}\left( {n + 1} \right)} = {\frac{\frac{\left\lbrack {{V_{in}\left( {n + 1} \right)} + ɛ} \right\rbrack \times {T_{on}\left( {n + 1} \right)}}{n \times {V_{out}\left( {n + 1} \right)}}}{\frac{\left\lbrack {{V_{in}(n)} + ɛ} \right\rbrack \times {T_{on}(n)}}{n \times {V_{out}(n)}}} \times {T_{DET}(n)}}} & (9) \end{matrix}$

Because the output capacitor C_(O) of the flyback converter is relatively large, and for the two consecutive switching cycles (n) and (n+1), the output voltage will be the same and therefore V_(out)(n)=V_(out)(n+1). Equation (9) can be simplified as given by:

$\begin{matrix} {{T_{DET}\left( {n + 1} \right)} = {\frac{\frac{\left\lbrack {{V_{in}\left( {n + 1} \right)} + ɛ} \right\rbrack \times {T_{on}\left( {n + 1} \right)}}{n}}{\frac{\left\lbrack {{V_{in}(n)} + ɛ} \right\rbrack \times {T_{on}(n)}}{n}} \times {T_{DET}(n)}}} & (10) \end{matrix}$

Based on the previous switching cycle demagnetization time and the calculated turn-on period for the secondary-side switch Q2, the secondary-side controller 104 updates the calculation and corrects the volt-second equation to yield an accurate turn-on period and thus off time for the secondary-side switch Q2 for the next switching cycle. The secondary-side controller 104 can tune the turn-on period and thus off time for the secondary-side switch Q2 based on the difference between the calculated turn-on time and the measured turn-on time, to yield more accurate results for turning on and turning off the secondary-side switch Q2.

FIG. 2 illustrates a waveform that shows how the secondary-side controller 104 tunes the calculated turn-on period and turn off time for the secondary-side switch Q2 as a function of the reflected input voltage V_(DET) measured at the secondary-side winding Ws of the flyback transformer, where T_(onPrimary) is the on-time period of the primary-side switch Q1, T_(SRmax) is the maximum allowed turn-on period for the secondary-side switch Q2, T_(SRon) is the compensated (adjusted) on-time period for switch Q2, and T_(dead) is the time for switch Q2 to be turned off before approaching T_(SRmax).

FIG. 3 illustrates a block diagram of an analog-based implementation of the control technique implemented by the secondary-side controller 104. V-I (voltage-current) converter A₃ converts voltage V_(CD) into current I_(DISCHR), where V_(CD) is the resistor divided output voltage provided by resistors R₃ and R₄ for input to the secondary-side controller 104. When the primary-side switch Q1 turns off, voltage V_(PD) goes negative. V-I converter A₃ discharges internal capacitor C_(T), which means the secondary-side switch Q2 is turned on. V-I converter A₁ converts voltage V_(PD) into current I_(CHR), where V_(PD) is the resistor divided reflected input voltage provided by resistors R₁ and R₂ and measured by the secondary-side controller 104. V-I converter A₁ is on when the primary-side switch Q1 is on and voltage V_(PD) is at a high voltage.

The secondary-side controller 104 uses the difference current I_(CHR)−I_(DISCHR) to charge internal capacitor C_(T) from a default voltage level V_(ref1) during the turn-on period of the primary-side switch Q1. Current I_(CHR) is given by:

$\begin{matrix} {I_{CHR} = \frac{\frac{R_{2}}{R_{1} + R_{2}} \times \left( {\frac{V_{in}}{n} + V_{out}} \right)}{R_{{int}\; 1}}} & (12) \end{matrix}$

where R_(int1) is an internal resistor for converting voltage V_(PD) into current. Current I_(DISCHR) is given by:

$\begin{matrix} {I_{DISCHR} = \frac{\frac{R_{4}}{R_{3} + R_{4}} \times V_{out}}{R_{{int}\; 2}}} & (13) \end{matrix}$

where R_(int2) is an internal resistor for converting voltage V_(CD) into current. From equations (12) and (13), the difference current I_(CHR)−I_(DISCHR) is given by:

$\begin{matrix} {{I_{CHR} - I_{DISCHR}} = {\frac{\frac{R_{2}}{R_{1} + R_{2}} \times \left( {\frac{V_{in}}{n} + V_{out}} \right)}{R_{{int}\; 1}} - \frac{\frac{R_{4}}{R_{3} + R_{4}} \times V_{out}}{R_{{int}\; 2}}}} & (14) \end{matrix}$

If R_(int1)=R_(int2) and

${\frac{R_{2}}{R_{1}} = \frac{R_{4}}{R_{3}}},$

the difference current I_(CHR)−I_(DISCHR) becomes:

$\begin{matrix} {{I_{CHR} - I_{DISCHR}} = \frac{\frac{R_{5}}{R_{4} + R_{5}} \times \left( \frac{V_{in}}{n} \right)}{R_{{int}\; 1}}} & (15) \end{matrix}$

From equation (15), the internal capacitor C_(T) is charged up only by the reflected input voltage, not output voltage.

Comparator A₄ compares voltage V_(PD) with reference voltage V_(ref2). When voltage V_(PD) is lower than reference V_(ref2), one short pulse is generated by pulse generator A₂. This short pulse sets SR (set-reset) flip-flop A₅, and turns on the secondary-side switch Q2 through buffer block A₅.

During the secondary-side winding demagnetization time, which should be the turn-on period for the secondary-side switch Q2, the secondary-side controller 104 uses current sink A₅ to discharge (I_(DISCHR)+I_(error)) internal capacitor C_(T), where I_(error) is a programmable current that can be positive or negative. When the capacitor C_(T) voltage discharges to V_(ref3) level, the secondary-side switch Q2 is turned off through comparator A₇, SR flip-flop A₅ and buffer A₆. SR flip-flop A₅ is reset via logic block A₁₂ when both T_(SRmax) and the output of comparator A₇ is positive. When the capacitor C_(T) voltage discharges to V_(ref1) level as indicated by comparator A₉, after some delay time T_(dead) provided by logic block A₁₃ and delay block A₁₀ to get t_(cal), time t_(cal) is compared with the falling edge t_(max) of T_(SRmax) and the secondary-side controller 104 performs some judgement and adjustment through logic block A₁₁.

For high system frequencies or high line (AC input) conditions, the turn-on period T_(ONPrimary) of the primary-side switch Q1 is reduced, and the reflected input voltage V_(PD) measured by the secondary-side controller 104 is not accurate. Under these conditions, voltage V_(PD) settles. During the settling time, V-I converter A₁ is operating but not at the right level. As a result, V-I converter A₁ charges capacitor C_(T) to an improper level (the voltage information is not correct during the settling time). When this voltage is converted to current for charging capacitor C_(T), some error exists in I_(CHR). Ideally, voltage V_(PD) has no settling time and capacitor C_(T) is charged at the input voltage level Vin for the full on-time period (rectangular voltage signal) of the secondary-side switch Q2. However, capacitor C_(T) may be charged lower than what it should ideally be charged to. This means that the on-time period and thus the off time for the secondary-side switch Q2 may be set shorter than what it ideally should be, lowering system efficiency. From equation (6), the calculated turn-on period and off time for the secondary-side switch Q2 may be adversely affected.

The secondary-side controller 104 corrects this error by compensating for the shape of voltage V_(PD), to account for the settling time so that V_(PD) has a rectangular or quasi-rectangular shape. The circuit shown in FIG. 3 charges capacitor C_(T) and makes the voltage look like a rectangular or quasi-rectangular voltage signal, by compensating the V_(PD) signal. Pulse generator A₂, SR flip-flop A₅ and buffer block A₆ sample and hold voltage V_(PD) at the proper level and the secondary-side controller 104 uses this voltage to calculate the charge current I_(CHR) for charging capacitor C_(T) during the next switching cycle.

As shown in FIG. 2, the target turn-on period and thus turn off time for the secondary-side switch Q2 should be given by:

T _(SRon) =T _(SRmax) −T _(dead)  (11)

where T_(SRmax) is the maximum allowed turn-on period for the secondary-side switch Q2, and can be measured by a comparator included in or associated with the secondary-side controller 104.

From equation (11), if T_(SRon) is shorter than T_(SRmax)−T_(dead), the secondary-side controller 104 prolongs the turn-on period and thus delays the turn off time of switch Q2 for the next switching cycle, and makes the next switching cycle turn-on period equal to T_(SRmax)−T_(dead). If T_(SRon) is longer than T_(SRmax)−T_(dead), the secondary-side controller 104 shortens the calculated turn-on period and thus pulls in the turn off time of switch Q2 for the next switching cycle, and makes next switching cycle turn-on period equal to T_(SRmax)−T_(dead). If T_(SRon) is equal to T_(SRmax)−T_(dead), the secondary-side controller 104 keeps the calculated turn-on period and thus off time of switch Q2 time for the next switching cycle, and makes the next switching cycle turn-on period equal to T_(SRmax)−T_(dead).

FIGS. 4 through 6 illustrate the scenarios described above and handled by the secondary-side controller 104. Ideally, time t_(cal) should happen at the same time as t_(max) for the present switching cycle. If time t_(cal) happens before time t_(max) as shown in FIG. 4, which means that the discharge time for capacitor C_(T) is too short for the present switching cycle, the secondary-side controller 104 reduces discharge current I_(error) by ΔI so that t_(cal) approaches t_(max) for the next switching cycle.

If time t_(cal) happens at the same time as t_(max) as shown in FIG. 5, the discharge time for capacitor C_(T) is ideal for the present switching cycle. The secondary-side controller 104 maintains the discharge current I_(DISCHR)+I_(error) at the present level, so that t_(cal) will be at the same time as t_(max) for the next switching cycle.

If time t_(cal) happens after t_(max) as shown in FIG. 6, t_(cal) happens after t_(max), which means that the discharge time for capacitor C_(T) is too long for the present switching cycle. The secondary-side controller 104 increases the discharge current I_(error) e.g. by 5×ΔI, 10×ΔI, or even higher so that t_(cal) will be earlier than t_(max) for the next switching cycle.

FIG. 7 illustrates an embodiment of the control technique implemented by the secondary-side controller 104. The control technique can be used for both DCM and CCM (continuous conduction mode) operation of the secondary-side switch Q2. The secondary-side controller 104 converts voltage V_(PD) into current I_(CHR) and voltage V_(CD) into current I_(DISCHR) (Block 200). During the turn-on period of the primary-side switch Q1, the secondary-side controller 104 uses difference current I_(CHR)−I_(DISCHR) to charge internal capacitor C_(T) (Block 202). After the primary-side switch Q1 is turned off, the secondary-side controller 104 turns on the secondary-side switch Q2 when V_(PD) is lower than threshold voltage V_(ref2) (Block 204). For the first switching pulse of the secondary-side switch Q2, the secondary-side controller 104 uses one current I_(DISCHR) to discharge internal capacitor C_(T) during the turn-off period of the secondary-side switch Q2 (Block 206). The secondary-side controller 104 uses one programmable current I_(DISCHR)+I_(error) to discharge internal capacitor C_(T) during the turn-on period of the secondary-side switch Q2 for the subsequent switching cycles (Block 208). When the voltage across internal capacitor C_(T) is discharged to V_(ref3), the secondary-side controller 104 turns off the secondary-side switch Q2 (Block 210). Further, when the voltage across internal capacitor C_(T) discharges to V_(ref1), with one fixed delay time T_(dead) to get time t_(cal), which is compared with the maximum allowed T_(SRmax) falling edge t_(max) (Block 212), the secondary-side controller 104 performs the following evaluations and adjustments (Block 214):

-   -   t_(cal) happens before t_(max), which means that discharge time         for capacitor C_(T) is too short for the present switching         cycle. For the optimal result, t_(cal) should happen the same         time as t_(max). For the next switching cycle, the         secondary-side controller 104 reduces discharge current         I_(error) by ΔI, and t_(cal) will be approach to t_(max) for the         next switching cycle;     -   t_(cal) happens the same time as t_(max), which means that         discharge time for capacitor C_(T) is already optimal for the         present switching cycle. The secondary-side controller 104         maintains the discharge current I_(error), and t_(cal) will be         the same as t_(max) for the next switching cycle;     -   t_(cal) happens after t_(max), which means that discharge time         for capacitor C_(T) is too long for the present switching cycle.         For the optimal result, t_(cal) should happen the same time as         t_(max). For the next switching cycle, the secondary-side         controller 104 increases creases the discharge current I_(error)         (for example, by 5×ΔI, 10×ΔI, or even higher), and t_(cal) will         be earlier than t_(max) for the next switching cycle.

With the control technique described above, the turn-on period T_(DET) and thus turn off time of the secondary-side switch Q2 can be calculated based on the previous switching cycle and the present product of charge-voltage and charge-time, and the errors induced by the measurement of the reflected input voltage and parasitic parameters are cancelled. Also, the discharge current depends on output voltage and therefore is adapted for a jump (sudden increase) in the output voltage. Furthermore, there is no need for high voltage chip technology with very low threshold detection and the control technique can be used for both DCM and CCM operation.

By using the volt-second balance equation, also based on the previous switching cycle demagnetization time and present product of input voltage over turn-on time, the secondary-side controller 104 can correct the volt-second equation and provide accurate transistor turn-on period and thus off time for the next switching cycle. The turn-on period and off time can be tuned based on the difference between calculated turn-on time and measured turn-on time, to yield an optimum result. Errors introduced by the reflected input voltage measurement and parasitic parameters are also cancelled by the control technique described herein.

FIG. 8 illustrates a block diagram of a digital-based implementation of the SR control technique implemented by the secondary-side controller 104. According to this embodiment, capacitor C_(T) is not used and the secondary-side controller 104 does not necessarily need the previous cycle information. At the end of the present on-time period for the primary-side switch Q1, the secondary-side controller 104 needs to sample the reflected input voltage measured at the secondary-side winding Ws. However, the secondary-side controller 104 does not know the end of the primary-side switch Q1 on-time period once the primary-side switch Q1 is turned on. In one embodiment, the secondary-side controller 104 includes a sample-and-hold unit 300 which samples the stepped down version V_(PD) of the reflected input voltage V_(DET) measured at the secondary-side winding Ws over an open window that always samples, and captures the value when the primary-side switch Q1 turns off. The falling edge of the turn-off event of primary-side switch Q1 is detected by an integrated capture compare unit (CCU) 302, which triggers the sample and hold unit 300 for the capturing event of the input voltage. Furthermore, the CCU 302 estimates the on-time period of the primary-side switch Q1 based on the captured edges of the sampling window. The captured on-time is fed to a lookup table (LUT) 304 which contains the associated error figures for very small on-time values when the reflected voltage is not yet settled during primary-side switch Q1 turn-on phase (see FIG. 2). The corresponding error figure is fed to a calculation unit 306 for determining the on-time of the secondary-side switch Q2, which is based on the volt-second theorem equation previously described herein. By considering the error figure from the LUT 304 within the calculation for the on-time of the secondary-side switch Q2, the sampled deviated input voltage is compensated for very small on-time periods of the primary-side switch Q1. The secondary-side switch Q2 turns on immediately when the primary-side switch Q1 turns off. The secondary-side controller 104 provides a minimum on-time period for the secondary-side switch Q2, and calculates the off-time during this period.

Terms such as “first”, “second”, and the like, are used to describe various elements, regions, sections, etc. and are also not intended to be limiting. Like terms refer to like elements throughout the description.

As used herein, the terms “having”, “containing”, “including”, “comprising” and the like are open ended terms that indicate the presence of stated elements or features, but do not preclude additional elements or features. The articles “a”, “an” and “the” are intended to include the plural as well as the singular, unless the context clearly indicates otherwise.

It is to be understood that the features of the various embodiments described herein may be combined with each other, unless specifically noted otherwise.

Although specific embodiments have been illustrated and described herein, it will be appreciated by those of ordinary skill in the art that a variety of alternate and/or equivalent implementations may be substituted for the specific embodiments shown and described without departing from the scope of the present invention. This application is intended to cover any adaptations or variations of the specific embodiments discussed herein. Therefore, it is intended that this invention be limited only by the claims and the equivalents thereof. 

What is claimed is:
 1. A method of operating a flyback converter having a primary-side switch connected to a primary-side winding of a transformer and a secondary-side switch connected to a secondary-side winding of the transformer, the method comprising: controlling the primary-side switch to store energy in the transformer during ON periods of the primary-side switch; switching on the secondary-side switch synchronously with switching off the primary-side switch to transfer energy from the transformer to the secondary side; determining an off time of the secondary-side switch based on a reflected input voltage measured at the secondary-side winding when the primary-side switch is on; accounting for a settling time of the reflected input voltage when determining the off time of the secondary-side switch, so that the settling time has little or no effect on the off time; and switching off the secondary-side switch based on the off time, wherein accounting for the settling time of the reflected input voltage when determining the off time of the secondary-side switch comprises: sampling values of the reflected input voltage during a previous switching cycle of the secondary-side switch and holding one of the values sampled at steady-state of the reflected input voltage; and using the value of the reflected input voltage sampled at steady-state during the previous switching cycle of the secondary-side switch in determining the off time of the secondary-side switch for a present switching cycle of the secondary-side switch.
 2. A method of operating a flyback converter having a primary-side switch connected to a primary-side winding of a transformer and a secondary-side switch connected to a secondary-side winding of the transformer, the method comprising: controlling the primary-side switch to store energy in the transformer during ON periods of the primary-side switch; switching on the secondary-side switch synchronously with switching off the primary-side switch to transfer energy from the transformer to the secondary side; determining an off time of the secondary-side switch based on a reflected input voltage measured at the secondary-side winding when the primary-side switch is on; accounting for a settling time of the reflected input voltage when determining the off time of the secondary-side switch, so that the settling time has little or no effect on the off time; and switching off the secondary-side switch based on the off time, wherein accounting for the settling time of the reflected input voltage when determining the off time of the secondary-side switch comprises: sampling values of the reflected input voltage during a present switching cycle of the secondary-side switch and holding one of the values sampled at steady-state of the reflected input voltage; and using the value of the reflected input voltage sampled at steady-state during the present switching cycle of the secondary-side switch in determining the off time of the secondary-side switch for the present switching cycle.
 3. The method of claim 2, wherein using the value of the reflected input voltage sampled at steady-state during the present switching cycle of the secondary-side switch in determining the off time of the secondary-side switch for the present switching cycle comprises: using an estimated on-time of the primary-side switch as a lookup value in a table to identify one or more error signals used to yield the off time of the secondary-side switch for the present switching cycle.
 4. A flyback converter, comprising: a primary-side switch connected to a primary-side winding of a transformer; a secondary-side switch connected to a secondary-side winding of the transformer; a primary-side controller operable to control the primary-side switch to store energy in the transformer during ON periods of the primary-side switch; and a secondary-side controller operable to: switch on the secondary-side switch synchronously with switching off the primary-side switch to transfer energy from the transformer to the secondary side; determine an off time of the secondary-side switch based on a reflected input voltage measured at the secondary-side winding when the primary-side switch is on; account for a settling time of the reflected input voltage when determining the off time of the secondary-side switch, so that the settling time has little or no effect on the off time; switch off the secondary-side switch based on the off time; sample values of the reflected input voltage during a previous switching cycle of the secondary-side switch and hold one of the values sampled at steady-state of the reflected input voltage; and use the value of the reflected input voltage sampled at steady-state during the previous switching cycle of the secondary-side switch in determining the off time of the secondary-side switch for a present switching cycle of the secondary-side switch.
 5. A flyback converter, comprising: a primary-side switch connected to a primary-side winding of a transformer; a secondary-side switch connected to a secondary-side winding of the transformer; a primary-side controller operable to control the primary-side switch to store energy in the transformer during ON periods of the primary-side switch; and a secondary-side controller operable to: switch on the secondary-side switch synchronously with switching off the primary-side switch to transfer energy from the transformer to the secondary side; determine an off time of the secondary-side switch based on a reflected input voltage measured at the secondary-side winding when the primary-side switch is on; account for a settling time of the reflected input voltage when determining the off time of the secondary-side switch, so that the settling time has little or no effect on the off time; switch off the secondary-side switch based on the off time; sample values of the reflected input voltage during a present switching cycle of the secondary-side switch and hold one of the values sampled at steady-state of the reflected input voltage; and use the value of the reflected input voltage sampled at steady-state during the present switching cycle of the secondary-side switch in determining the off time of the secondary-side switch for the present switching cycle.
 6. The flyback converter of claim 5, wherein the secondary-side controller is operable to use an estimated on-time of the primary-side switch as a lookup value in a table to identify one or more error signals used to yield the off time of the secondary-side switch for the present switching cycle. 